﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MaxStudio.Concrete.DBUtility
{
    public class MessageKeys
    {
        // common
        public class Common
        {
            public static readonly String database_ModifiedByOtherThread = "common.database.modifiedByOtherThread";

            //"传入参数不正确"
            public static readonly String page_ParametersError = "common.page.ParametersError";

            //主键冲突
            public static readonly String database_foreignkey_conflict = "common.cannotdelete.foreignkey.conflict";
        }


        // userProfile
        public class UserProfile
        {
            public static readonly String common_UserNotExist = "userProfile.common.userNotExist";

            public static readonly String enableUser_AlreadyEnabled = "userProfile.enableUser.alreadyEnabled";

            public static readonly String enableUser_AlreadyDisabled = "userProfile.enableUser.alreadyDisabled";

            public static readonly String user_login_noUserOrPwdError = "userProfile.login.noUserOrPwdError";

            public static readonly String user_login_alreadyApplied = "userProfile.login.alreadyApplied";

            public static readonly String user_login_userNotEnable = "userProfile.login.userNotEnable";
            public static readonly String user_login_userSessionEnd = "userProfile.login.userSessionEnd";
            public static readonly String user_login_userNoPermission = "userProfile.login.userNoPermission";
        }

        // role
        public class Role
        {
            public static readonly String common_RoleNotExist = "role.common.roleNotExist";

        }

        // plant
        public class Plant
        {
            public static readonly String common_PlantNotExist = "plant.common.plantNotExist";

            public static readonly String common_DefaultPlantNotExist = "plant.common.defaultPlantNotExist";

            public static readonly String plantsetting_datatype_shouldBeInt = "plantsetting.datatype.shouldBeInt";

            public static readonly String plantsetting_datatype_shouldBeDecimal = "plantsetting.datatype.shouldBeDecimal";

            public static readonly String plantsetting_datatype_shouldBeDecimalPointTwo = "plantsetting.datatype.shouldBeDecimalPointTwo";

            public static readonly String plantsetting_datatype_shouldBeDatetime = "plantsetting.datatype.shouldBeDatetime";

            public static readonly String plantsetting_datatype_shouldMoreThanZero = "plantsetting.datatype.shouldMoreThanZero";

            public static readonly String plant_code_alreadyExist = "plant.common.codeAlreadyExist";

        }

        // function
        public class Function
        {
            public static readonly String common_FunctionNotExist = "function.common.functionNotExist";
        }

        //InnerBag
        public class InnerBag
        {
            public static readonly String common_InnerBagNotExist = "InnerBag.common.InnerBagNotExist";

            public static readonly String common_InnerBagAlreadyExist = "InnerBag.common.InnerBagAlreadyExist";

            public static readonly String common_InnerBagActualVolumeIsBeingUsed = "InnerBag.common.InerBagActualVolumeIsBeingUsed";

            public static readonly String common_InnerBagIsBeingUsed = "InnerBag.common.InnerBagIsBeingUsed";

            public static readonly String common_InnerBagErrorSettingOfSterilizationParameter = "InnerBag.common.ErrorSettingOfInnerBagSterilizationParameter";

            public static readonly String common_InnerBagErrorSettingOfPrintingParameter = "InnerBag.common.ErrorSettingOfInnerBagPrintingParameter";
        }

        //Overpouch
        public class Overpouch
        {
            public static readonly String common_OverpouchNotExist = "Overpouch.common.OverpouchNotExist";

            public static readonly String common_OverpouchAlreadyExist = "Overpouch.common.OverpouchAlreadyExist";

            public static readonly String common_OverpouchIsBeingUsed = "Overpouch.common.OverpouchIsBeingUsed";
        }

        //OtherPackage
        public class OtherPackage
        {
            public static readonly String common_OtherPackageNotExist = "Overpouch.common.OtherPackageNotExist";

            public static readonly String common_OtherPackageAlreadyExist = "Overpouch.common.OtherPackageAlreadyExist";

            public static readonly String common_OtherPackageIsBeingUsed = "Overpouch.common.OtherPackageIsBeingUsed";
        }

        //Standform
        public class Standform
        {
            public static readonly String common_StandformNotExist = "Standform.common.StandformNotExist";

            public static readonly String common_StandformAlreadyExist = "Standform.common.StandformAlreadyExist";

            public static readonly String common_StandformIsBeingUsed = "Standform.common.StandformIsBeingUsed";

            public static readonly String common_StandformBeUsedDisabledError = "Standform.common.StandformBeUsedDisabledError";

            public static readonly String common_StandformInValidSetting = "Standform.common.StandformInValidSetting";

            public static readonly String common_StandformSetValueError = "Standform.common.StandformSetValueError";

            public static readonly String common_StandformMergeError = "Standform.common.StandformMergeError";
        }

        //Certificate
        public class Certificate
        {
            public static readonly String common_CertificateStandardNotExist = "Certificate.common.CertificateStandardNotExist";

            public static readonly String common_CertificateNotExist = "Certificate.common.CertificateNotExist";

            public static readonly String common_CertificateIsBeingUsed = "Standform.common.CertificateIsBeingUsed";

            public static readonly String common_CertificateBeUsedDisabledError = "Standform.common.CertificateBeUsedDisabledError";

            public static readonly String common_CertificateTestItemNotExist = "CertificateTestItem.common.CertificateTestItemNotExist";

            public static readonly String common_CertificateTestItemReferenceNameExist = "CertificateTestItem.common.CertificateTestItemReferenceNameExist";

            public static readonly String common_CertificateTestItemOneTestItemNameWithTestMethodMustBeUnique = "CertificateTestItem.common.CertificateTestItemOneTestItemNameWithTestMethodMustBeUnique";

            public static readonly String common_CertificateTemplateFileNotExist = "CertificateTestItem.common.CertificateTemplateFileNotExist";

            public static readonly String common_BatchCertificateNotExist = "CertificateTestItem.common.common_BatchCertificateNotExist";

            public static readonly String common_BatchCertificateFormNoIsBeingUsed = "CertificateTestItem.common.common_BatchCertificateFormNoIsBeingUsed";
        }

        // TestItem
        public class TestItem
        {
            public static readonly String common_TestItemNotExist = "testItem.common.NotExist";

            public static readonly String common_TestItemAlreadyExist = "testItem.common.AlreadyExist";
        }

        // BatchStabilityStudy
        public class BatchStabilityStudy
        {
            public static readonly String common_BatchStabilityStudyNotExist = "batchStabilityStudy.common.NotExist";

            public static readonly String common_BatchStabilityStudyAlreadyExist = "batchStabilityStudy.common.AlreadyExist";
        }

        // Tester
        public class Tester
        {
            public static readonly String common_TesterNotExist = "tester.common.NotExist";

            public static readonly String common_TesterAlreadyExist = "tester.common.AlreadyExist";
        }

        // TestPlace
        public class TestPlace
        {
            public static readonly String common_TestPlaceNotExist = "testPlace.common.NotExist";

            public static readonly String common_TestPlaceAlreadyExist = "testPlace.common.AlreadyExist";
        }

        // TestResult
        public class TestResult
        {
            public static readonly String common_TestResultNotExist = "testResult.common.NotExist";

            public static readonly String common_TestResultAlreadyExist = "testResult.common.AlreadyExist";

            public static readonly String common_TestResultBatchNoCannotEmpty = "testResult.common.BatchNoCannotEmpty";
        }

        // TestLimit
        public class TestLimit
        {
            public static readonly String common_TestLimitNotExist = "testLimit.common.NotExist";

            public static readonly String common_TestLimitAlreadyExist = "testLimit.common.AlreadyExist";
        }

        // TestLimitCalTask
        public class TestLimitCalTask
        {
            public static readonly String common_TestLimitCalTaskNotExist = "testLimitCalTask.common.NotExist";

            public static readonly String common_TestLimitCalTaskAlreadyExist = "testLimitCalTask.common.AlreadyExist";

            public static readonly String common_TestLimitCalTaskRequestFailed = "testLimitCalcTask.common.RequestFailed";

            public static readonly String common_TestLimitCalTaskNeedSelectTestItem = "testLimitCalcTask.common.NeedSelectTestItem";

            public static readonly String common_TestLimitCalTaskProductIsEmpty = "testLimitCalTask.common.ProductIsEmpty";
            public static readonly String common_TestLimitCalTaskTestPalceIsEmpty = "testLimitCalTask.common.TestPalceIsEmpty";
            public static readonly String common_TestLimitCalTaskBeginAndEndBatchNoIsEmpty = "testLimitCalTask.common.BeginAndEndBatchNoIsEmpty";
            public static readonly String common_TestLimitCalTaskBeginAndEndDateIsEmpty = "testLimitCalTask.common.BeginAndEndDateIsEmpty";
            public static readonly String common_TestLimitCalTaskBatchNoNeedSelectByScope = "testLimitCalTask.common.BatchNoNeedSelectByScope";
            public static readonly String common_TestLimitCalTaskBatchNoIsError = "testLimitCalTask.common.BatchNoIsError";
            public static readonly String common_TestLimitCalTaskBatchNoFormatError = "testLimitCalTask.common.BatchNoFormatError";

        }

        // TestLimitCalTaskDtl
        public class TestLimitCalTaskDtl
        {
            public static readonly String common_TestLimitCalTaskDtlNotExist = "testLimitCalTaskDtl.common.NotExist";

            public static readonly String common_TestLimitCalTaskDtlAlreadyExist = "testLimitCalTaskDtl.common.AlreadyExist";

            //1）没有TestResult 
            public static readonly String common_TestLimitCalTaskDtl_Exception_NoTestResult = "testLimitCalTaskDtl.exception.NoTestResult";  // TestResult=0
            //2）只有1条Result (n-1)没办法算方差
            public static readonly String common_TestLimitCalTaskDtl_Exception_NoValidTestResult = "testLimitCalTaskDtl.exception.NoValidTestResult";  // ResultValue非空的TestResult小于等于1
        }


        //Instrument
        public class Instrument
        {
            public static readonly String common_InstrumentNotExist = "Instrument.common.InstrumentNotExist";

            public static readonly String common_InstrumentAlreadyExist = "Instrument.common.InstrumentAlreadyExist";

            public static readonly String common_InstrumentIsBeingUsed = "Instrument.common.InstrumentIsBeingUsed";
        }
        //InstrumentCalibrationResult
        public class InstrumentCalibrationResult
        {
            public static readonly String common_InstrumentCalibrationResultNotExist = "InstrumentCalibrationResult.common.InstrumentCalibrationResultNotExist";

            public static readonly String common_InstrumentCalibrationResultAlreadyExist = "InstrumentCalibrationResult.common.InstrumentCalibrationResultAlreadyExist";

            public static readonly String common_InstrumentCalibrationResultIsBeingUsed = "InstrumentCalibrationResult.common.InstrumentCalibrationResultIsBeingUsed";

            public static readonly String common_InstrumentCalibrationResultInvalidStatusToAddResult = "InstrumentCalibrationResult.common.InstrumentCalibrationResultInvalidStatusToAddResult";
        }

        //InstrumentCategory
        public class InstrumentCategory
        {
            public static readonly String common_InstrumentCategoryNotExist = "InstrumentCategory.common.InstrumentCategoryNotExist";

            public static readonly String common_InstrumentCategoryAlreadyExist = "InstrumentCategory.common.InstrumentCategoryAlreadyExist";

            public static readonly String common_InstrumentCategoryIsBeingUsed = "InstrumentCategory.common.InstrumentCategoryIsBeingUsed";
        }

        //InstrumentUsageHistory
        public class InstrumentUsageHistory
        {
            public static readonly String common_InstrumentUsageHistoryNotExist = "InstrumentUsageHistory.common.InstrumentUsageHistoryNotExist";

            public static readonly String common_InstrumentUsageHistoryAlreadyExist = "InstrumentUsageHistory.common.InstrumentUsageHistoryAlreadyExist";

            public static readonly String common_InstrumentUsageHistoryIsBeingUsed = "InstrumentUsageHistory.common.InstrumentUsageHistoryIsBeingUsed";
        }

        //Product
        public class Product
        {
            public static readonly String common_ProductNotExist = "Product.common.ProductNotExist";

            public static readonly String common_ProductAlreadyExist = "Product.common.ProductAlreadyExist";

            public static readonly String common_ProductIsBeingUsed = "Product.common.ProductIsBeingUsed";
        }

        //Batch
        public class Batch
        {
            public static readonly String common_BatchtNotExist = "Batch.common.BatchtNotExist";

            public static readonly String common_BatchAlreadyExist = "Batch.common.BatchAlreadyExist";
        }

        //ProductRawMaterial
        public class ProductRawMaterial
        {
            public static readonly String common_ProductRawMaterialNotExist = "ProductRawMaterial.common.ProductRawMaterialNotExist";

            public static readonly String common_ProductRawMaterialAlreadyExist = "ProductRawMaterial.common.ProductRawMaterialAlreadyExist";

            public static readonly String common_ProductRawMaterialIsBeingUsed = "ProductRawMaterial.common.ProductRawMaterialIsBeingUsed";
        }

        //Validation
        public class Validation
        {
            public static readonly String common_ValidationNotExist = "Validation.common.ValidationNotExist";

            public static readonly String common_ValidationAlreadyExist = "Validation.common.ValidationAlreadyExist";

            public static readonly String common_ValidationIsBeingUsed = "Validation.common.ValidationIsBeingUsed";
        }
        //ValidationRecord
        public class ValidationRecord
        {
            public static readonly String common_ValidationRecordNotExist = "ValidationRecord.common.ValidationRecordNotExist";

            public static readonly String common_ValidationRecordAlreadyExist = "ValidationRecord.common.ValidationRecordAlreadyExist";

            public static readonly String common_ValidationRecordIsBeingUsed = "ValidationRecord.common.ValidationRecordIsBeingUsed";
        }

        //CalibrationPerformer
        public class CalibrationPerformer
        {
            public static readonly String common_CalibrationPerformerNotExist = "CalibrationPerformer.common.CalibrationPerformerNotExist";

            public static readonly String common_CalibrationPerformerAlreadyExist = "CalibrationPerformer.common.CalibrationPerformerAlreadyExist";

            public static readonly String common_CalibrationPerformerIsBeingUsed = "CalibrationPerformer.common.CalibrationPerformerIsBeingUsed";
        }

        //ChangeRecord
        public class ChangeRecord
        {
            public static readonly String common_ChangeRecordNotExist = "ChangeRecord.common.ChangeRecordNotExist";

            public static readonly String common_ChangeRecordAlreadyExist = "ChangeRecord.common.ChangeRecordAlreadyExist";

            public static readonly String common_ChangeRecordIsBeingUsed = "ChangeRecord.common.ChangeRecordIsBeingUsed";
        }

        //ExceptionCauseType
        public class ExceptionCauseType
        {
            public static readonly String common_ExceptionCauseTypeNotExist = "ExceptionCauseType.common.ExceptionCauseTypeNotExist";

            public static readonly String common_ExceptionCauseTypeAlreadyExist = "ExceptionCauseType.common.ExceptionCauseTypeAlreadyExist";

            public static readonly String common_ExceptionCauseTypeIsBeingUsed = "ExceptionCauseType.common.ExceptionCauseTypeIsBeingUsed";
        }
        //Department
        public class Department
        {
            public static readonly String common_DepartmentNotExist = "Department.common.DepartmentNotExist";

            public static readonly String common_DepartmentAlreadyExist = "Department.common.DepartmentAlreadyExist";

            public static readonly String common_DepartmentIsBeingUsed = "Department.common.DepartmentIsBeingUsed";
        }

        //DefectType
        public class DefectType
        {
            public static readonly String common_DefectTypeNotExist = "DefectType.common.DefectTypeNotExist";

            public static readonly String common_DefectTypeAlreadyExist = "DefectType.common.DefectTypeAlreadyExist";

            public static readonly String common_DefectTypeIsBeingUsed = "DefectType.common.DefectTypeIsBeingUsed";
        }
        public class DefectProcedure
        {
            public static readonly String common_DefectProcedureNotExist = "DefectProcedure.common.DefectProcedureNotExist";

            public static readonly String common_DefectProcedureAlreadyExist = "DefectProcedure.common.DefectProcedureAlreadyExist";

            public static readonly String common_DefectProcedureIsBeingUsed = "DefectProcedure.common.DefectProcedureIsBeingUsed";
        }

        //RawMaterial
        public class RawMaterial
        {
            public static readonly String common_RawMaterialAlreadyExist = "RawMaterial.common.RawMaterialAlreadyExist";

            public static readonly String common_RawMaterialNotExist = "RawMaterial.common.RawMaterialNotExist";

            public static readonly String common_RawMaterialIsBeingUsed = "RawMaterial.common.RawMaterialIsBeingUsed";
        }

        //AVIVARawMaterial
        public class AVIVARawMaterial
        {
            public static readonly String common_AVIVARawMaterialAlreadyExist = "AVIVARawMaterial.common.AVIVARawMaterialAlreadyExist";

            public static readonly String common_AVIVARawMaterialNotExist = "AVIVARawMaterial.common.AVIVARawMaterialNotExist";

            public static readonly String common_AVIVARawMaterialIsBeingUsed = "AVIVARawMaterial.common.AVIVARawMaterialIsBeingUsed";
        }

        //RawMaterialSupplier
        public class RawMaterialSupplier
        {
            public static readonly String common_RawMaterialSupplierAlreadyExist = "RawMaterialSupplier.common.RawMaterialSupplierAlreadyExist";
        }

        public class AVIVARawMaterialSupplier
        {
            public static readonly String common_AVIVARawMaterialSupplierAlreadyExist = "AVIVARawMaterialSupplier.common.AVIVARawMaterialSupplierAlreadyExist";
        }

        //RawMaterialBatch
        public class RawMaterialBatch
        {
            public static readonly String common_RawMaterialAlreadyExist = "RawMaterialBatch.common.RawMaterialBatchAlreadyExist";

            public static readonly String common_RawMaterialBatchIsBeingUsed = "RawMaterialBatch.common.RawMaterialBatchIsBeingUsed";
        }

        //RawMaterialBatch
        public class AVIVABagComponent
        {
            public static readonly String common_AVIVABagComponentNotExist = "AVIVABagComponent.common.AVIVABagComponentNotExist";
        }
    }
}
